/**
 * Created by no1 on 2015/4/16.
 */

'use strict';

/**
 * Module dependencies.
 */

let mongoose = require('mongoose');
let Schema = mongoose.Schema;
let extend = require('mongoose-schema-extend');
let o2oModel = require('./mongoModel');

let C = require('../config');

//exports.poi = mongoose.models('poi', poiSchema);
//exports.user = mongoose.models('user', userSchema);
exports.initDB = function () {
    mongoose.connect(C.mongo.uri, C.mongo.options);
};